package com.ruoyi.project.data.mapper;

import java.util.List;
import com.ruoyi.project.data.domain.WeightEquipment;
import org.springframework.stereotype.Repository;

/**
 * 设备信息Mapper接口
 * 
 * @author ruoyi
 * @date 2020-03-21
 */
@Repository
public interface WeightEquipmentMapper 
{
    /**
     * 查询设备信息
     * 
     * @param id 设备信息ID
     * @return 设备信息
     */
    public WeightEquipment selectWeightEquipmentById(Long id);

    /**
     * 查询设备信息列表
     * 
     * @param weightEquipment 设备信息
     * @return 设备信息集合
     */
    public List<WeightEquipment> selectWeightEquipmentList(WeightEquipment weightEquipment);

    /**
     * 新增设备信息
     * 
     * @param weightEquipment 设备信息
     * @return 结果
     */
    public int insertWeightEquipment(WeightEquipment weightEquipment);

    /**
     * 修改设备信息
     * 
     * @param weightEquipment 设备信息
     * @return 结果
     */
    public int updateWeightEquipment(WeightEquipment weightEquipment);

    /**
     * 删除设备信息
     * 
     * @param id 设备信息ID
     * @return 结果
     */
    public int deleteWeightEquipmentById(Long id);

    /**
     * 批量删除设备信息
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWeightEquipmentByIds(Long[] ids);

    /**
     * 验证设备编号是否存在
     * @param weightEquipment
     * @return
     */
    public int checkEquipmentCodeUnique(WeightEquipment weightEquipment);
}
